[FFmpeg-cvslog] r19241 - in trunk: libavcodec/h264.c libavformat/img2.c
cehoyos
subversion
Sat Jun 20 16:47:39 CEST 2009
Author: cehoyos
Date: Sat Jun 20 16:47:38 2009
New Revision: 19241
Log:
Revert r19239: It broke four conformance tests.
Modified:
trunk/libavcodec/h264.c
trunk/libavformat/img2.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c Sat Jun 20 15:36:21 2009 (r19240)
+++ trunk/libavcodec/h264.c Sat Jun 20 16:47:38 2009 (r19241)
@@ -7708,7 +7708,7 @@ static int decode_frame(AVCodecContext *
//FIXME factorize this with the output code below
out = h->delayed_pic[0];
out_idx = 0;
- for(i=1; h->delayed_pic[i] && !h->delayed_pic[i]->key_frame; i++)
+ for(i=1; h->delayed_pic[i] && (h->delayed_pic[i]->poc && !h->delayed_pic[i]->key_frame); i++)
if(h->delayed_pic[i]->poc < out->poc){
out = h->delayed_pic[i];
out_idx = i;
@@ -7884,12 +7884,12 @@ static int decode_frame(AVCodecContext *
out = h->delayed_pic[0];
out_idx = 0;
- for(i=1; h->delayed_pic[i] && !h->delayed_pic[i]->key_frame; i++)
+ for(i=1; h->delayed_pic[i] && (h->delayed_pic[i]->poc && !h->delayed_pic[i]->key_frame); i++)
if(h->delayed_pic[i]->poc < out->poc){
out = h->delayed_pic[i];
out_idx = i;
}
- cross_idr = !!h->delayed_pic[i] || h->delayed_pic[0]->key_frame;
+ cross_idr = !h->delayed_pic[0]->poc || !!h->delayed_pic[i] || h->delayed_pic[0]->key_frame;
out_of_order = !cross_idr && out->poc < h->outputed_poc;
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c Sat Jun 20 15:36:21 2009 (r19240)
+++ trunk/libavformat/img2.c Sat Jun 20 16:47:38 2009 (r19241)
@@ -42,7 +42,7 @@ typedef struct {
static const IdStrMap img_tags[] = {
{ CODEC_ID_MJPEG , "jpeg"},
{ CODEC_ID_MJPEG , "jpg"},
- { CODEC_ID_LJPEG , "ljpg"},
+ { CODEC_ID_JPEGLS , "ljpg"},
{ CODEC_ID_PNG , "png"},
{ CODEC_ID_PNG , "mng"},
{ CODEC_ID_PPM , "ppm"},
More information about the ffmpeg-cvslog
mailing list