Browse code

dpxenc: fix data offset

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 361319d0f49475bc14c744194870f9bab78a8a83)

Conflicts:

tests/ref/lavf/dpx

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

ArnoB authored on 2013/03/15 02:35:55
Showing 2 changed files
... ...
@@ -212,6 +212,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
212 212
     buf[803] = s->bits_per_component;
213 213
     write16(buf + 804, (s->bits_per_component == 10 || s->bits_per_component == 12) ?
214 214
                        1 : 0); /* packing method */
215
+    write32(buf + 808, HEADER_SIZE); /* data offset */
215 216
 
216 217
     /* Image source information header */
217 218
     write32(buf + 1628, avctx->sample_aspect_ratio.num);
... ...
@@ -1,9 +1,9 @@
1
-808ea110635774252439722a48329d61 *./tests/data/images/dpx/02.dpx
1
+d2f0b4e854fda2d3b3bee84cef80593c *./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
4
-5e1a777fa3f4094c9c4dd989cf9e8e8b *./tests/data/images/dpx/02.dpx
4
+075963c3c08978b6a20555ba09161434 *./tests/data/images/dpx/02.dpx
5 5
 ./tests/data/images/dpx/%02d.dpx CRC=0xe5b9c023
6 6
 609920 ./tests/data/images/dpx/02.dpx
7
-13dc41b1e1e36399a5e1f8b7e3344a81 *./tests/data/images/dpx/02.dpx
7
+b9f22728f8ff393bf30cf6cbd624fa95 *./tests/data/images/dpx/02.dpx
8 8
 ./tests/data/images/dpx/%02d.dpx CRC=0xf0a1c097
9 9
 407168 ./tests/data/images/dpx/02.dpx