Browse Source

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.
tags/n2.1
Nicolas George 12 years ago
parent
commit
d7ccfe58e3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvorbisdec.c

+ 1
- 1
libavcodec/libvorbisdec.c View File

@@ -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;
}



Loading…
Cancel
Save