[FFmpeg-devel] [PATCH 5/7] avformat/dss: Return 0 on success

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri Apr 2 00:26:10 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/dss.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/dss.c b/libavformat/dss.c
index f4545326d2..fe8fd5cebb 100644
--- a/libavformat/dss.c
+++ b/libavformat/dss.c
@@ -247,7 +247,7 @@ static int dss_sp_read_packet(AVFormatContext *s, AVPacket *pkt)
         return AVERROR(EAGAIN);
     }
 
-    return pkt->size;
+    return 0;
 
 error_eof:
     return ret < 0 ? ret : AVERROR_EOF;
@@ -302,7 +302,7 @@ static int dss_723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
     if (ret < size)
         return ret < 0 ? ret : AVERROR_EOF;
 
-    return pkt->size;
+    return 0;
 }
 
 static int dss_read_packet(AVFormatContext *s, AVPacket *pkt)
-- 
2.27.0



More information about the ffmpeg-devel mailing list