Mercurial > libavformat.hg
comparison utils.c @ 1018:bddcb32bde33 libavformat
provide more info on which streams lack codec parameters
author | michael |
---|---|
date | Tue, 21 Mar 2006 11:29:50 +0000 |
parents | 2d57ce58f576 |
children | 1aabcccb2efa |
comparison
equal
deleted
inserted
replaced
1017:47dc020f5215 | 1018:bddcb32bde33 |
---|---|
1929 if (ret < 0) { | 1929 if (ret < 0) { |
1930 /* EOF or error */ | 1930 /* EOF or error */ |
1931 ret = -1; /* we could not have all the codec parameters before EOF */ | 1931 ret = -1; /* we could not have all the codec parameters before EOF */ |
1932 for(i=0;i<ic->nb_streams;i++) { | 1932 for(i=0;i<ic->nb_streams;i++) { |
1933 st = ic->streams[i]; | 1933 st = ic->streams[i]; |
1934 if (!has_codec_parameters(st->codec)) | 1934 if (!has_codec_parameters(st->codec)){ |
1935 char buf[256]; | |
1936 avcodec_string(buf, sizeof(buf), st->codec, 0); | |
1937 av_log(ic, AV_LOG_INFO, "Could not find codec parameters (%s)\n", buf); | |
1935 break; | 1938 break; |
1939 } | |
1936 } | 1940 } |
1937 if (i == ic->nb_streams) | 1941 if (i == ic->nb_streams) |
1938 ret = 0; | 1942 ret = 0; |
1939 break; | 1943 break; |
1940 } | 1944 } |