[FFmpeg-devel] Realmedia patch

Ronald S. Bultje rsbultje
Mon Aug 18 19:10:09 CEST 2008


Hi,

On Mon, Aug 18, 2008 at 10:57 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
>> Index: ffplay.c
>> ===================================================================
>> --- ffplay.c  (revision 14060)
>> +++ ffplay.c  (working copy)
>> @@ -1735,6 +1735,7 @@
>>      if(thread_count>1)
>>          avcodec_thread_init(enc, thread_count);
>>      enc->thread_count= thread_count;
>> +    ic->streams[stream_index]->discard = AVDISCARD_DEFAULT;
>>      switch(enc->codec_type) {
>>      case CODEC_TYPE_AUDIO:
>>          is->audio_stream = stream_index;
>> @@ -1829,6 +1830,7 @@
>>          break;
>>      }
>>
>> +    ic->streams[stream_index]->discard = AVDISCARD_ALL;
>>      avcodec_close(enc);
>>      switch(enc->codec_type) {
>>      case CODEC_TYPE_AUDIO:
>> @@ -1939,6 +1941,7 @@
>>
>>      for(i = 0; i < ic->nb_streams; i++) {
>>          AVCodecContext *enc = ic->streams[i]->codec;
>> +        ic->streams[i]->discard = AVDISCARD_ALL;
>>          switch(enc->codec_type) {
>>          case CODEC_TYPE_AUDIO:
>>              if ((audio_index < 0 || wanted_audio_stream-- > 0) && !audio_disable)
>
> ok (yes just the change to ffplay.c)

That part is committed.

Thanks,
Ronald




More information about the ffmpeg-devel mailing list