mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-14 03:04:53 +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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user