comparison swf.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 a58a8a53eb46
comparison
equal deleted inserted replaced
4:dcc03a32d1bb 5:39c4c4336486
480 /* if mp3 streaming found, OK */ 480 /* if mp3 streaming found, OK */
481 if ((v & 0x20) != 0) { 481 if ((v & 0x20) != 0) {
482 st = av_mallocz(sizeof(AVStream)); 482 st = av_mallocz(sizeof(AVStream));
483 if (!st) 483 if (!st)
484 return -ENOMEM; 484 return -ENOMEM;
485 avcodec_get_context_defaults(&st->codec);
486
485 if (v & 0x01) 487 if (v & 0x01)
486 st->codec.channels = 2; 488 st->codec.channels = 2;
487 else 489 else
488 st->codec.channels = 1; 490 st->codec.channels = 1;
489 s->nb_streams = 1; 491 s->nb_streams = 1;