Browse code

dpxenc: Dont store lavc indent when bitexact is set.

This avoids fate breakage from bumping version.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/01/17 09:37:59
Showing 2 changed files
... ...
@@ -121,7 +121,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
121 121
     memcpy (buf +   8, "V1.0", 4);
122 122
     write32(buf +  20, 1); /* new image */
123 123
     write32(buf +  24, HEADER_SIZE);
124
-    memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100));
124
+    if(!(avctx->flags & CODEC_FLAG_BITEXACT)){
125
+        memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100));
126
+    }
125 127
     write32(buf + 660, 0xFFFFFFFF); /* unencrypted */
126 128
 
127 129
     /* Image information header */
... ...
@@ -1,3 +1,3 @@
1
-a80049454fe1f00233be79b87a4f9c07 *./tests/data/images/dpx/02.dpx
1
+808ea110635774252439722a48329d61 *./tests/data/images/dpx/02.dpx
2 2
 ./tests/data/images/dpx/%02d.dpx CRC=0x6da01946
3 3
 305792 ./tests/data/images/dpx/02.dpx