[FFmpeg-cvslog] avformat/utils: factorize if()

Michael Niedermayer git at videolan.org
Sun Apr 13 18:13:32 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Apr 13 18:02:42 2014 +0200| [c0d62d999d0ecf072b6352f346b7e17841f2598c] | committer: Michael Niedermayer

avformat/utils: factorize if()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0d62d999d0ecf072b6352f346b7e17841f2598c
---

 libavformat/utils.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 685a5fe..768acd4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1545,10 +1545,10 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
             }
             st->global_side_data_injected = 1;
         }
-    }
 
-    if (ret >= 0 && !(s->flags & AVFMT_FLAG_KEEP_SIDE_DATA))
-        av_packet_merge_side_data(pkt);
+        if (!(s->flags & AVFMT_FLAG_KEEP_SIDE_DATA))
+            av_packet_merge_side_data(pkt);
+    }
 
     if (s->debug & FF_FDEBUG_TS)
         av_log(s, AV_LOG_DEBUG,



More information about the ffmpeg-cvslog mailing list