diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-25 08:05:43 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-25 08:05:43 +0000 |
commit | 6df1deda30c72a443050e4c7120d57ff6e94f56f (patch) | |
tree | 3a02e26762a88b4f9f650921272f7810445ce92f /libavformat/mxfenc.c | |
parent | 1de2db8fab510b994f19be61882088410311d6de (diff) | |
download | ffmpeg-6df1deda30c72a443050e4c7120d57ff6e94f56f.tar.gz |
do not set frame start bit since marked as not used and factorize
Originally committed as revision 17580 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index d225114c24..c1e60a706d 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1608,13 +1608,13 @@ static void mxf_write_d10_audio_packet(AVFormatContext *s, AVStream *st, AVPacke for (i = 0; i < st->codec->channels; i++) { uint32_t sample; if (st->codec->codec_id == CODEC_ID_PCM_S24LE) { - sample = (AV_RL24(samples)<< 4)|((samples==pkt->data)<<3) | i; + sample = AV_RL24(samples)<< 4; samples += 3; } else { - sample = (AV_RL16(samples)<<12)|((samples==pkt->data)<<3) | i; + sample = AV_RL16(samples)<<12; samples += 2; } - put_le32(pb, sample); + put_le32(pb, sample | i); } for (; i < 8; i++) put_le32(pb, 0); |