|
|
|
@@ -702,10 +702,8 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, |
|
|
|
if (st->codec.codec_type == CODEC_TYPE_VIDEO) { |
|
|
|
/* XXX: need has_b_frame, but cannot get it if the codec is |
|
|
|
not initialized */ |
|
|
|
if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || |
|
|
|
st->codec.codec_id == CODEC_ID_MPEG2VIDEO || |
|
|
|
st->codec.codec_id == CODEC_ID_MPEG4 || |
|
|
|
st->codec.codec_id == CODEC_ID_H264) && |
|
|
|
if (( st->codec.codec_id == CODEC_ID_H264 |
|
|
|
|| st->codec.has_b_frames) && |
|
|
|
pc && pc->pict_type != FF_B_TYPE) |
|
|
|
presentation_delayed = 1; |
|
|
|
/* this may be redundant, but it shouldnt hurt */ |
|
|
|
|