diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-09-05 15:38:13 +0200 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-09-07 21:04:13 +0200 |
commit | 256e99f6f055c8bea226799c843db5df3a3bb701 (patch) | |
tree | 1ed84783e1199315be43249e4dd572ee754fef59 | |
parent | 3e886e7307502bc6e1a8496ec25eca94b04825c5 (diff) | |
download | ffmpeg-streaming-256e99f6f055c8bea226799c843db5df3a3bb701.zip ffmpeg-streaming-256e99f6f055c8bea226799c843db5df3a3bb701.tar.gz |
lavc/mediacodecdec_h264: move bsf variable declaration at the top of the function
-rw-r--r-- | libavcodec/mediacodecdec_h264.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mediacodecdec_h264.c b/libavcodec/mediacodecdec_h264.c index 96e2a8a..9350a32 100644 --- a/libavcodec/mediacodecdec_h264.c +++ b/libavcodec/mediacodecdec_h264.c @@ -129,6 +129,8 @@ static av_cold int mediacodec_decode_init(AVCodecContext *avctx) int is_avc = 0; int nal_length_size = 0; + const AVBitStreamFilter *bsf = NULL; + FFAMediaFormat *format = NULL; MediaCodecH264DecContext *s = avctx->priv_data; @@ -205,7 +207,7 @@ static av_cold int mediacodec_decode_init(AVCodecContext *avctx) goto done; } - const AVBitStreamFilter *bsf = av_bsf_get_by_name("h264_mp4toannexb"); + bsf = av_bsf_get_by_name("h264_mp4toannexb"); if(!bsf) { ret = AVERROR_BSF_NOT_FOUND; goto done; |