mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
simplify, use codec->block_align
Originally committed as revision 17582 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
37653f0b93
commit
e38badbc21
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user