diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2011-12-13 15:54:59 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-12-13 20:19:49 +0100 |
commit | 220481e1d6582277ae4c02b05f87251a8670e6cc (patch) | |
tree | 852ab5b4b24d682a08f59a95a84bf3d63662436c | |
parent | f39258d587ab124485cbd76fc524e12ad4dd3cde (diff) | |
download | ffmpeg-220481e1d6582277ae4c02b05f87251a8670e6cc.tar.gz |
lavfi: skip the frame in case of error.
This fixes playback with some audio files through filters.
-rw-r--r-- | libavfilter/src_movie.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 2017e30732..367688a40b 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -416,8 +416,10 @@ static int amovie_get_samples(AVFilterLink *outlink) /* decode and update the movie pkt */ ret = avcodec_decode_audio3(movie->codec_ctx, movie->samples_buf, &decoded_data_size, &movie->pkt); - if (ret < 0) + if (ret < 0) { + movie->pkt.size = 0; return ret; + } movie->pkt.data += ret; movie->pkt.size -= ret; |