mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-02 21:01:56 +00:00
lavc/mediacodecdec_h264: move bsf variable declaration at the top of the function
This commit is contained in:
parent
3e886e7307
commit
256e99f6f0
@ -129,6 +129,8 @@ static av_cold int mediacodec_decode_init(AVCodecContext *avctx)
|
|||||||
int is_avc = 0;
|
int is_avc = 0;
|
||||||
int nal_length_size = 0;
|
int nal_length_size = 0;
|
||||||
|
|
||||||
|
const AVBitStreamFilter *bsf = NULL;
|
||||||
|
|
||||||
FFAMediaFormat *format = NULL;
|
FFAMediaFormat *format = NULL;
|
||||||
MediaCodecH264DecContext *s = avctx->priv_data;
|
MediaCodecH264DecContext *s = avctx->priv_data;
|
||||||
|
|
||||||
@ -205,7 +207,7 @@ static av_cold int mediacodec_decode_init(AVCodecContext *avctx)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
const AVBitStreamFilter *bsf = av_bsf_get_by_name("h264_mp4toannexb");
|
bsf = av_bsf_get_by_name("h264_mp4toannexb");
|
||||||
if(!bsf) {
|
if(!bsf) {
|
||||||
ret = AVERROR_BSF_NOT_FOUND;
|
ret = AVERROR_BSF_NOT_FOUND;
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
Reference in New Issue
Block a user