avformat/oggenc: Fix return code in case of flushing
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Jun 2015 16:42:55 +0000 (18:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 9 Jun 2015 16:42:55 +0000 (18:42 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggenc.c

index 873dfac..2c0a44e 100644 (file)
@@ -620,7 +620,7 @@ static int ogg_write_packet(AVFormatContext *s, AVPacket *pkt)
     }
 
     ogg_write_pages(s, 2);
-    return 0;
+    return 1;
 }
 
 static int ogg_write_trailer(AVFormatContext *s)