]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_signature.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_signature.c
index 32a6405e14bffe3fdd6a66e71f613b74cf354040..a345ad6ebdfb1578d181a5df09d5f5641d5d0b30 100644 (file)
@@ -561,7 +561,7 @@ static int binary_export(AVFilterContext *ctx, StreamContext *sc, const char* fi
     }
 
     flush_put_bits(&buf);
-    fwrite(buffer, 1, put_bits_count(&buf)/8, f);
+    fwrite(buffer, 1, put_bytes_output(&buf), f);
     fclose(f);
     av_freep(&buffer);
     return 0;
@@ -758,7 +758,7 @@ static const AVFilterPad signature_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_signature = {
+const AVFilter ff_vf_signature = {
     .name          = "signature",
     .description   = NULL_IF_CONFIG_SMALL("Calculate the MPEG-7 video signature"),
     .priv_size     = sizeof(SignatureContext),