[FFmpeg-devel] [PATCH] avcodec/vp9_raw_reorder_bsf.c fix deadcode

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Nov 8 12:57:00 EET 2019


darling.zhong:
> Here if (in->data[in->size - 1] & 0) nerver true?
> 
> 
> Signed-off-by: darling.zhong <dalingzhong at yeah.net>
> ---
>  libavcodec/vp9_raw_reorder_bsf.c | 2 +-
>  patcheck.tmp                     | 0
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  mode change 100644 => 100755 libavcodec/vp9_raw_reorder_bsf.c
>  create mode 100644 patcheck.tmp
> 
> 
> diff --git a/libavcodec/vp9_raw_reorder_bsf.c b/libavcodec/vp9_raw_reorder_bsf.c
> old mode 100644
> new mode 100755
> index f19b4c7198..e55a358457
> --- a/libavcodec/vp9_raw_reorder_bsf.c
> +++ b/libavcodec/vp9_raw_reorder_bsf.c
> @@ -292,7 +292,7 @@ static int vp9_raw_reorder_filter(AVBSFContext *bsf, AVPacket *out)
>              return err;
>          }
>  
> -        if (in->data[in->size - 1] & 0xe0 == 0xc0) {
> +        if ((in->data[in->size - 1] & 0xe0) == 0xc0) {
>              av_log(bsf, AV_LOG_ERROR, "Input in superframes is not "
>                     "supported.\n");
>              av_packet_free(&in);
> diff --git a/patcheck.tmp b/patcheck.tmp
> new file mode 100644
> index 0000000000..e69de29bb2
> 
Already suggested in
https://ffmpeg.org/pipermail/ffmpeg-devel/2019-September/250772.html.

- Andreas


More information about the ffmpeg-devel mailing list