[FFmpeg-cvslog] avcodec: set avpkt->size to 0 if encode2() did not output a packet
Justin Ruggles
git at videolan.org
Sat Feb 11 01:35:36 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Feb 7 14:31:49 2012 -0500| [b758cf7343d169afaa79a62b8a47af9ced04be27] | committer: Justin Ruggles
avcodec: set avpkt->size to 0 if encode2() did not output a packet
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b758cf7343d169afaa79a62b8a47af9ced04be27
---
libavcodec/utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9dded6a..de3816b 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -881,6 +881,8 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
avctx->time_base);
}
avpkt->dts = avpkt->pts;
+ } else {
+ avpkt->size = 0;
}
} else {
/* for compatibility with encoders not supporting encode2(), we need to
More information about the ffmpeg-cvslog
mailing list