Commit b911531b authored by bcoudurier's avatar bcoudurier

simplify, use codec->block_align

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17582 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 450ffdf4
......@@ -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;
......
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