diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-25 08:08:10 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-25 08:08:10 +0000 |
commit | e38badbc21b4608fe48da4a35b3ce2860e7b5eba (patch) | |
tree | d99c5b2c2ef0718383d4ac6248789f3b1afb0716 | |
parent | 37653f0b938cb80385a40ca20e0641808a2e41ec (diff) | |
download | ffmpeg-e38badbc21b4608fe48da4a35b3ce2860e7b5eba.tar.gz |
simplify, use codec->block_align
Originally committed as revision 17582 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 1fa1bfbff8..bdcbcd74bc 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1592,8 +1592,7 @@ static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacke { 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; |