Mercurial > libavformat.hg
changeset 4573:3e1796a40c4d libavformat
simplify, use codec->block_align
author | bcoudurier |
---|---|
date | Wed, 25 Feb 2009 08:08:10 +0000 |
parents | f3b6979fee40 |
children | b330c2e275f9 |
files | mxfenc.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Wed Feb 25 08:06:15 2009 +0000 +++ b/mxfenc.c Wed Feb 25 08:08:10 2009 +0000 @@ -1592,8 +1592,7 @@ { MXFContext *mxf = s->priv_data; ByteIOContext *pb = s->pb; - int frame_size = (pkt->size<<3) / - (st->codec->channels*av_get_bits_per_sample(st->codec->codec_id)); + int frame_size = pkt->size / st->codec->block_align; uint8_t *samples = pkt->data; uint8_t *end = pkt->data + pkt->size; int i;