[libav-devel] [PATCH 2/6] rtpdec_jpeg: Coalesce redundant error checks

Luca Barbato lu_zero at gentoo.org
Thu Dec 17 15:37:57 CET 2015


On 17/12/15 13:28, Diego Biurrun wrote:
> ---
>  libavformat/rtpdec_jpeg.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
> index 3bee0b2..15324bf 100644
> --- a/libavformat/rtpdec_jpeg.c
> +++ b/libavformat/rtpdec_jpeg.c
> @@ -228,12 +228,6 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
>      buf += 8;
>      len -= 8;
>  
> -    /* Parse the restart marker header. */
> -    if (type > 63) {
> -        av_log(ctx, AV_LOG_ERROR,
> -               "Unimplemented RTP/JPEG restart marker header.\n");
> -        return AVERROR_PATCHWELCOME;
> -    }
>      if (type > 1) {
>          av_log(ctx, AV_LOG_ERROR, "Unimplemented RTP/JPEG type %d\n", type);
>          return AVERROR_PATCHWELCOME;
> 

Ok.


More information about the libav-devel mailing list