diff mbox series

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

Message ID HE1PR0301MB2154FAFBA8AA340898A629158F7B9@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit b3652d97452bd1d8b641bf7ec967f9cdda2a53c5
Headers show
Series [FFmpeg-devel,1/7] avformat/utils: Check allocations for failure | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt April 1, 2021, 9:26 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/dss.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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)