Commit e38badbc authored by Baptiste Coudurier's avatar Baptiste Coudurier

simplify, use codec->block_align

Originally committed as revision 17582 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 37653f0b
...@@ -1592,8 +1592,7 @@ static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacke ...@@ -1592,8 +1592,7 @@ static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacke
{ {
MXFContext *mxf = s->priv_data; MXFContext *mxf = s->priv_data;
ByteIOContext *pb = s->pb; ByteIOContext *pb = s->pb;
int frame_size = (pkt->size<<3) / int frame_size = pkt->size / st->codec->block_align;
(st->codec->channels*av_get_bits_per_sample(st->codec->codec_id));
uint8_t *samples = pkt->data; uint8_t *samples = pkt->data;
uint8_t *end = pkt->data + pkt->size; uint8_t *end = pkt->data + pkt->size;
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment