Mercurial > libavformat.hg
comparison avidec.c @ 5:39c4c4336486 libavformat
cleanup
adding AVVideoFrame
moving quality, pict_type, key_frame, qscale_table, ... to AVVideoFrame
removing obsolete variables in AVCodecContext
skiping of MBs in b frames
correctly initalizing AVCodecContext
picture buffer cleanup
author | michaelni |
---|---|
date | Wed, 04 Dec 2002 10:04:03 +0000 |
parents | 05318cf2e886 |
children | 8a5285a0ca2f |
comparison
equal
deleted
inserted
replaced
4:dcc03a32d1bb | 5:39c4c4336486 |
---|---|
101 s->nb_streams = get_le32(pb); | 101 s->nb_streams = get_le32(pb); |
102 for(i=0;i<s->nb_streams;i++) { | 102 for(i=0;i<s->nb_streams;i++) { |
103 AVStream *st = av_mallocz(sizeof(AVStream)); | 103 AVStream *st = av_mallocz(sizeof(AVStream)); |
104 if (!st) | 104 if (!st) |
105 goto fail; | 105 goto fail; |
106 avcodec_get_context_defaults(&st->codec); | |
107 | |
106 s->streams[i] = st; | 108 s->streams[i] = st; |
107 } | 109 } |
108 url_fskip(pb, size - 7 * 4); | 110 url_fskip(pb, size - 7 * 4); |
109 break; | 111 break; |
110 case MKTAG('s', 't', 'r', 'h'): | 112 case MKTAG('s', 't', 'r', 'h'): |