Skip to content

Commit

Permalink
Enable PAFF decoding
Browse files Browse the repository at this point in the history
Originally committed as revision 10696 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
cehoyos committed Oct 9, 2007
1 parent bcf8eb1 commit d6c5213
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ version <next>
- additional SPARC (VIS) optimizations
- AMV audio and video decoder
- DNxHD encoder
- H.264 PAFF decoding

version 0.4.9-pre1:

Expand Down
1 change: 0 additions & 1 deletion libavcodec/h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -3989,7 +3989,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
}else{
if(get_bits1(&s->gb)) { //field_pic_flag
s->picture_structure= PICT_TOP_FIELD + get_bits1(&s->gb); //bottom_field_flag
av_log(h->s.avctx, AV_LOG_ERROR, "PAFF interlacing is not implemented\n");
} else {
s->picture_structure= PICT_FRAME;
h->mb_aff_frame = h->sps.mb_aff;
Expand Down
2 changes: 1 addition & 1 deletion libavcodec/h264.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#define MB_MBAFF h->mb_mbaff
#define MB_FIELD h->mb_field_decoding_flag
#define FRAME_MBAFF h->mb_aff_frame
#define FIELD_PICTURE 0
#define FIELD_PICTURE (s->picture_structure != PICT_FRAME)
#else
#define MB_MBAFF 0
#define MB_FIELD 0
Expand Down

0 comments on commit d6c5213

Please sign in to comment.