Commit 92083072 authored by victor's avatar victor

The watermark vhook cannot handle truncated bitstreams.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9473 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cc001c54
...@@ -544,10 +544,6 @@ int get_watermark_picture(ContextInfo *ci, int cleanup) ...@@ -544,10 +544,6 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
return -1; return -1;
} }
// Inform the codec that we can handle truncated bitstreams -- i.e.,
// bitstreams where frame boundaries can fall in the middle of packets
if (ci->pCodec->capabilities & CODEC_CAP_TRUNCATED)
ci->pCodecCtx->flags|=CODEC_FLAG_TRUNCATED;
// Open codec // Open codec
if(avcodec_open(ci->pCodecCtx, ci->pCodec)<0) { if(avcodec_open(ci->pCodecCtx, ci->pCodec)<0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment