]> git.sesse.net Git - ffmpeg/commitdiff
avformat/uncodedframecrc: fix incompatible pointer type warning
authorJames Almer <jamrial@gmail.com>
Wed, 13 Apr 2016 04:05:02 +0000 (01:05 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 13 Apr 2016 04:39:59 +0000 (01:39 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/uncodedframecrcenc.c

index 9702a700073f439882c4acc338d674e5774c927e..76f8527bd965532f9d7e82f545a49f4c4248f99d 100644 (file)
@@ -119,6 +119,11 @@ static void audio_frame_cksum(AVBPrint *bp, AVFrame *frame)
     }
 }
 
+static int write_header(struct AVFormatContext *s)
+{
+    return ff_framehash_write_header(s, 1);
+}
+
 static int write_frame(struct AVFormatContext *s, int stream_index,
                        AVFrame **frame, unsigned flags)
 {
@@ -164,7 +169,7 @@ AVOutputFormat ff_uncodedframecrc_muxer = {
     .long_name         = NULL_IF_CONFIG_SMALL("uncoded framecrc testing"),
     .audio_codec       = AV_CODEC_ID_PCM_S16LE,
     .video_codec       = AV_CODEC_ID_RAWVIDEO,
-    .write_header      = ff_framehash_write_header,
+    .write_header      = write_header,
     .write_packet      = write_packet,
     .write_uncoded_frame = write_frame,
     .flags             = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT |