]> git.sesse.net Git - ffmpeg/blobdiff - vhook/watermark.c
Use ff_sqrt() function instead of using a table
[ffmpeg] / vhook / watermark.c
index 3d8313aa5962d655ec23f0439389e7671d4a597a..74f50953139094f3cda6a9b446820e5992544467 100644 (file)
 #include <unistd.h>
 #include <stdarg.h>
 
-#include "common.h"
-#include "avformat.h"
-
-#include "framehook.h"
+#include "libavutil/common.h"
+#include "libavformat/avformat.h"
+#include "libavformat/framehook.h"
+#include "libswscale/swscale.h"
 #include "cmdutils.h"
-#include "swscale.h"
 
 static int sws_flags = SWS_BICUBIC;
 
@@ -544,10 +543,6 @@ int get_watermark_picture(ContextInfo *ci, int cleanup)
             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
         if(avcodec_open(ci->pCodecCtx, ci->pCodec)<0) {