[FFmpeg-cvslog] r17580 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Wed Feb 25 09:05:43 CET 2009


Author: bcoudurier
Date: Wed Feb 25 09:05:43 2009
New Revision: 17580

Log:
do not set frame start bit since marked as not used and factorize

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	Wed Feb 25 04:18:11 2009	(r17579)
+++ trunk/libavformat/mxfenc.c	Wed Feb 25 09:05:43 2009	(r17580)
@@ -1608,13 +1608,13 @@ static void mxf_write_d10_audio_packet(A
         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);




More information about the ffmpeg-cvslog mailing list