aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libvorbisdec.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-09-03 20:05:06 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-09-04 16:36:20 +0200
commitd7ccfe58e3a31d10286cb6ef1ab6cf5b7fa455fe (patch)
tree6927aed67991e04a9f67be96a4d2176130fead62 /libavcodec/libvorbisdec.c
parentd5b58f678dcb045c873def4d243348a031c902c8 (diff)
downloadffmpeg-d7ccfe58e3a31d10286cb6ef1ab6cf5b7fa455fe.tar.gz
lavc/libvorbisdec: do not return empty frames.
Some parts of the code have been known to react badly to empty frames; they should not, but there is no need to take risks.
Diffstat (limited to 'libavcodec/libvorbisdec.c')
-rw-r--r--libavcodec/libvorbisdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c
index c4142cd959..682265691d 100644
--- a/libavcodec/libvorbisdec.c
+++ b/libavcodec/libvorbisdec.c
@@ -171,7 +171,7 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext, void *data,
}
frame->nb_samples = total_samples;
- *got_frame_ptr = 1;
+ *got_frame_ptr = total_samples > 0;
return avpkt->size;
}