aboutsummaryrefslogtreecommitdiffstats
path: root/libav/utils.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-21 17:48:33 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-21 17:48:33 +0000
commitd4c0ff917dac14258d289807a6d80b6b45daa8ff (patch)
tree8139902539f36dd60ed25306b90d4fe5ed9fd9fc /libav/utils.c
parent90dca1411d6cbabc50a7aba197f0bd8410a59175 (diff)
downloadffmpeg-d4c0ff917dac14258d289807a6d80b6b45daa8ff.tar.gz
single frame output fix
Originally committed as revision 1061 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/utils.c')
-rw-r--r--libav/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libav/utils.c b/libav/utils.c
index da4f6329fe..d7cf658ec3 100644
--- a/libav/utils.c
+++ b/libav/utils.c
@@ -734,7 +734,7 @@ int av_write_header(AVFormatContext *s)
* @param stream_index stream index
* @param buf buffer containing the frame data
* @param size size of buffer
- * @return non zero if error.
+ * @return < 0 if error, = 0 if OK, 1 if end of stream wanted.
*/
int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf,
int size)
@@ -763,7 +763,7 @@ int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf,
default:
break;
}
- return 0;
+ return ret;
}
/**