diff options
author | James Almer <jamrial@gmail.com> | 2016-04-13 01:05:02 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-04-13 01:39:59 -0300 |
commit | 3674a53d171028c5bb1692dd80a3cd113bd7ff8b (patch) | |
tree | a7ab05cb4ac206fe3e675d528ac52202690b8305 /libavformat/uncodedframecrcenc.c | |
parent | 4d59d075a96c7bc9fc7a118f96015fbf5156708a (diff) | |
download | ffmpeg-3674a53d171028c5bb1692dd80a3cd113bd7ff8b.tar.gz |
avformat/uncodedframecrc: fix incompatible pointer type warning
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/uncodedframecrcenc.c')
-rw-r--r-- | libavformat/uncodedframecrcenc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c index 9702a70007..76f8527bd9 100644 --- a/libavformat/uncodedframecrcenc.c +++ b/libavformat/uncodedframecrcenc.c @@ -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 | |