diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-15 22:33:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-15 23:00:50 +0400 |
commit | fb33bff990a8327f59d4c7c509bba1f62bbd6c5a (patch) | |
tree | c6f3ad232bed67c703999d78b3fcff66daa8c91d /libavformat/oggdec.c | |
parent | 3bb22973518cbef28504e4d5b9fd74453cc3339c (diff) | |
parent | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 (diff) |
Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'
* commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39':
cosmetics: Write NULL pointer equality checks more compactly
Conflicts:
cmdutils.c
ffmpeg_opt.c
ffplay.c
libavcodec/dvbsub.c
libavcodec/dvdsubdec.c
libavcodec/dvdsubenc.c
libavcodec/dxa.c
libavcodec/libxvid_rc.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo_enc.c
libavcodec/rv10.c
libavcodec/tiffenc.c
libavcodec/utils.c
libavcodec/vc1dec.c
libavcodec/zmbv.c
libavdevice/v4l2.c
libavformat/matroskadec.c
libavformat/movenc.c
libavformat/sdp.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index dcead1c227..f17393bfa8 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -796,7 +796,7 @@ retry: uint8_t *side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_SKIP_SAMPLES, 10); - if(side_data == NULL) + if(!side_data) goto fail; AV_WL32(side_data + 4, os->end_trimming); os->end_trimming = 0; @@ -806,7 +806,7 @@ retry: uint8_t *side_data = av_packet_new_side_data(pkt, AV_PKT_DATA_METADATA_UPDATE, os->new_metadata_size); - if(side_data == NULL) + if(!side_data) goto fail; memcpy(side_data, os->new_metadata, os->new_metadata_size); |