diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 18:40:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-12 18:40:11 +0000 |
commit | 55b9e69a31658df3c8e41bdcdbc5a8221a74e733 (patch) | |
tree | c6a401564a4593215b58ec20937ffb4b17e9a9b4 /ffmpeg.c | |
parent | 8540e8c3eca73b18b7b5bc7f0b937007b0f81ddd (diff) | |
download | ffmpeg-55b9e69a31658df3c8e41bdcdbc5a8221a74e733.tar.gz |
av_*_next() API for libavcodec
Originally committed as revision 11204 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3321,8 +3321,8 @@ static void opt_show_formats(void) AVInputFormat *ifmt; AVOutputFormat *ofmt; URLProtocol *up; - AVCodec *p, *p2; - AVBitStreamFilter *bsf; + AVCodec *p=NULL, *p2; + AVBitStreamFilter *bsf=NULL; const char *last_name; printf("File formats:\n"); @@ -3373,7 +3373,7 @@ static void opt_show_formats(void) const char *type_str; p2=NULL; - for(p = first_avcodec; p != NULL; p = p->next) { + while(p= av_codec_next(p)) { if((p2==NULL || strcmp(p->name, p2->name)<0) && strcmp(p->name, last_name)>0){ p2= p; @@ -3419,7 +3419,7 @@ static void opt_show_formats(void) printf("\n"); printf("Bitstream filters:\n"); - for(bsf = first_bitstream_filter; bsf != NULL; bsf = bsf->next) + while(bsf = av_bitstream_filter_next(bsf)) printf(" %s", bsf->name); printf("\n"); |