After 95ce02b35d3d1bb16111031df1d82a6e4d894d36, the value of ret
was not guaranteed to be 0 by some compilers.
---
I am so sorry about this one. :/

I only modified the value of ret for the functions I changed in 95ce02b35,
should I make the rest of the file consistent?
---
 libavformat/rmdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index b8ba24e..2445855 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -722,7 +722,7 @@ ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb,
                     int *seq, int flags, int64_t timestamp)
 {
     RMDemuxContext *rm = s->priv_data;
-    int ret;
+    int ret = 0;
 
     if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
         rm->current_stream= st->id;
@@ -803,7 +803,7 @@ ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb,
                       AVStream *st, RMStream *ast, AVPacket *pkt)
 {
     RMDemuxContext *rm = s->priv_data;
-    int ret;
+    int ret = 0;
 
     assert (rm->audio_pkt_cnt > 0);
 
-- 
2.7.4

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to