comparison h264.c @ 5806:62fc35411cb1 libavcodec

Set pict->interlaced_frame if returned frame is MBAFF or PAFF.
author cehoyos
date Wed, 10 Oct 2007 20:31:42 +0000
parents 12b1717f80a3
children 05e66f9c15bb
comparison
equal deleted inserted replaced
5805:12b1717f80a3 5806:62fc35411cb1
7841 7841
7842 /* Return the Picture timestamp as the frame number */ 7842 /* Return the Picture timestamp as the frame number */
7843 /* we substract 1 because it is added on utils.c */ 7843 /* we substract 1 because it is added on utils.c */
7844 avctx->frame_number = s->picture_number - 1; 7844 avctx->frame_number = s->picture_number - 1;
7845 #endif 7845 #endif
7846 pict->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
7846 return get_consumed_bytes(s, buf_index, buf_size); 7847 return get_consumed_bytes(s, buf_index, buf_size);
7847 } 7848 }
7848 #if 0 7849 #if 0
7849 static inline void fill_mb_avail(H264Context *h){ 7850 static inline void fill_mb_avail(H264Context *h){
7850 MpegEncContext * const s = &h->s; 7851 MpegEncContext * const s = &h->s;