oggdec: print error on changing streams when its unsupported.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-04 13:53:34 +02:00
parent 6fd478062c
commit 251ce23165
1 changed files with 3 additions and 1 deletions

View File

@ -255,8 +255,10 @@ static int ogg_read_page(AVFormatContext *s, int *str)
if (ogg->headers) {
int n;
if (ogg->nstreams != 1)
if (ogg->nstreams != 1) {
av_log_missing_feature(s, "Changing stream parameters in multistream ogg is", 0);
return idx;
}
for (n = 0; n < ogg->nstreams; n++) {
av_freep(&ogg->streams[n].buf);