summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/libvorbisdec.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/libvorbisdec.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/libvorbisdec.c')
-rw-r--r--ffmpeg/libavcodec/libvorbisdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/libvorbisdec.c b/ffmpeg/libavcodec/libvorbisdec.c
index c4142cd..b703b65 100644
--- a/ffmpeg/libavcodec/libvorbisdec.c
+++ b/ffmpeg/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;
}
@@ -188,6 +188,7 @@ static int oggvorbis_decode_close(AVCodecContext *avccontext) {
AVCodec ff_libvorbis_decoder = {
.name = "libvorbis",
+ .long_name = NULL_IF_CONFIG_SMALL("libvorbis"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_VORBIS,
.priv_data_size = sizeof(OggVorbisDecContext),
@@ -195,5 +196,4 @@ AVCodec ff_libvorbis_decoder = {
.decode = oggvorbis_decode_frame,
.close = oggvorbis_decode_close,
.capabilities = CODEC_CAP_DELAY,
- .long_name = NULL_IF_CONFIG_SMALL("libvorbis"),
};