[FFmpeg-trac] #2386(avcodec:open): ffmpeg creates non-PS3 compatible DivX

FFmpeg trac at avcodec.org
Mon May 20 19:05:27 CEST 2013


#2386: ffmpeg creates non-PS3 compatible DivX
-------------------------------------+-------------------------------------
             Reporter:  someuser     |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  libxvid      |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by michael):

 Does the patch below fix the issue ?

 {{{
 diff --git a/libavformat/avienc.c b/libavformat/avienc.c
 index f2fa9dc..3511c81 100644
 --- a/libavformat/avienc.c
 +++ b/libavformat/avienc.c
 @@ -523,7 +523,7 @@ static int avi_write_packet(AVFormatContext *s,
 AVPacket *pkt)
      int size= pkt->size;

      av_dlog(s, "dts:%s packet_count:%d stream_index:%d\n",
 av_ts2str(pkt->dts), avist->packet_count, stream_index);
 -    while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts >
 avist->packet_count && enc->codec_id != AV_CODEC_ID_XSUB){
 +    while(enc->block_align==0 && pkt->dts != AV_NOPTS_VALUE && pkt->dts >
 avist->packet_count && enc->codec_id != AV_CODEC_ID_XSUB &&
 avist->packet_count){
          AVPacket empty_packet;

          if(pkt->dts - avist->packet_count > 60000){
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2386#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list