[FFmpeg-cvslog] r17582 - trunk/libavformat/mxfenc.c
bcoudurier
subversion
Wed Feb 25 09:08:11 CET 2009
Author: bcoudurier
Date: Wed Feb 25 09:08:10 2009
New Revision: 17582
Log:
simplify, use codec->block_align
Modified:
trunk/libavformat/mxfenc.c
Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c Wed Feb 25 09:06:15 2009 (r17581)
+++ trunk/libavformat/mxfenc.c Wed Feb 25 09:08:10 2009 (r17582)
@@ -1592,8 +1592,7 @@ static void mxf_write_d10_audio_packet(A
{
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;
More information about the ffmpeg-cvslog
mailing list