changeset 4571:d870b1e4b731 libavformat

do not set frame start bit since marked as not used and factorize
author bcoudurier
date Wed, 25 Feb 2009 08:05:43 +0000
parents b42c89b5b998
children f3b6979fee40
files mxfenc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Wed Feb 25 03:18:11 2009 +0000
+++ b/mxfenc.c	Wed Feb 25 08:05:43 2009 +0000
@@ -1608,13 +1608,13 @@
         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);