mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 08:56:59 +08:00
dpxenc: Don't include the libavcodec ident if bitexact mode is enabled
This avoids breaking fate every time the lavc version is bumped. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
+2
-1
@@ -126,7 +126,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
memcpy (buf + 8, "V1.0", 4);
|
||||
write32(buf + 20, 1); /* new image */
|
||||
write32(buf + 24, HEADER_SIZE);
|
||||
memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100));
|
||||
if (!(avctx->flags & CODEC_FLAG_BITEXACT))
|
||||
memcpy (buf + 160, LIBAVCODEC_IDENT, FFMIN(sizeof(LIBAVCODEC_IDENT), 100));
|
||||
write32(buf + 660, 0xFFFFFFFF); /* unencrypted */
|
||||
|
||||
/* Image information header */
|
||||
|
||||
Reference in New Issue
Block a user