[FFmpeg-trac] #3229(avcodec:open): ffplay shows bad images

FFmpeg trac at avcodec.org
Mon Dec 16 23:57:59 CET 2013


#3229: ffplay shows bad images
------------------------------------+-----------------------------------
             Reporter:  hxuanyu     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  mjpeg       |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by hxuanyu):

 Replying to [comment:3 ami_stuff]:
 > It's a problem with fields' order.
 >
 > This quick hack fixes it:
 >
 > libavcoedec/mjpegdec.c:
 >
 > {{{
 >     if (avctx->field_order == AV_FIELD_BB) { /* quicktime icefloe 019 */
 >         s->interlace_polarity = 1;           /* bottom field first */
 >         av_log(avctx, AV_LOG_DEBUG, "bottom field first\n");
 >     }
 >     if (avctx->codec->id == AV_CODEC_ID_AMV)
 >         s->flipped = 1;
 >
 > +        s->interlace_polarity = 1;
 >
 >     return 0;
 > }}}
 >
 > Also WMP plays the file correctly.

 Yes, it works!

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


More information about the FFmpeg-trac mailing list