[FFmpeg-devel] [PATCH] avformat/mxfdec: check if source_package is NULL

Tomas Härdin tomas.hardin at codemill.se
Sun Jun 12 08:23:20 CEST 2016


On Tue, 2016-05-31 at 23:02 +0200, Marton Balint wrote:
> Fixes ticket #5554.
> 
> Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  libavformat/mxfdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
> index f8cf922..9bf676c 100644
> --- a/libavformat/mxfdec.c
> +++ b/libavformat/mxfdec.c
> @@ -1914,7 +1914,7 @@ static int
> mxf_parse_structural_metadata(MXFContext *mxf)
>                  break;
>              }
>          }
> -        if (!source_track || !component)
> +        if (!source_track || !component || !source_package)
>              continue;
>  
>          if (!(source_track->sequence = mxf_resolve_strong_ref(mxf,
> &source_track->sequence_ref, Sequence))) {

Looks OK. Crashes are important

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/9c3d9f7a/attachment.sig>


More information about the ffmpeg-devel mailing list