#2838: Mpeg TS sample plays with lots of artifacts with ffplay (mplayer ok)
-------------------------------------+-------------------------------------
             Reporter:  aballier     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by aballier):

 with this hack:

 {{{
 diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
 index 15a5d2f..9661b27 100644
 --- a/libavformat/mpegts.c
 +++ b/libavformat/mpegts.c
 @@ -454,7 +454,7 @@ static int analyze(const uint8_t *buf, int size, int
 packet_size, int *index){
      memset(stat, 0, packet_size*sizeof(int));

      for(x=i=0; i<size-3; i++){
 -        if(buf[i] == 0x47 && !(buf[i+1] & 0x80) && buf[i+3] != 0x47){
 +        if(buf[i] == 0x47) { // && !(buf[i+1] & 0x80) && buf[i+3] !=
 0x47){
              stat[x]++;
              if(stat[x] > best_score){
                  best_score= stat[x];
 }}}

 the file is detected as dvhs and plays correctly

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2838#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to