History

h264_mp4toannexb_bsf: always set idr_sps_pps_seen when SPS/PPS is seen.

In order not to break a sequence like "SPS IDR SPS IDR", the boolean telling that the SPS/PPS has been seen should always be set.

Benoit Fouet committed 12 years ago

Commit 42f25fe1 parent 66af2a01 file · +1 −1Browse files

Unified · Split

libavcodec/h264_mp4toannexb_bsf.c+1−1
@@ -176,7 +176,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc, · 175 unmodified lines
176 if (buf + nal_size > buf_end || nal_size < 0)176 if (buf + nal_size > buf_end || nal_size < 0)
177 goto fail;177 goto fail;
178 178
179 if (ctx->first_idr && (unit_type == 7 || unit_type == 8))179 if (unit_type == 7 || unit_type == 8)
180 ctx->idr_sps_pps_seen = 1;180 ctx->idr_sps_pps_seen = 1;
181 181
182 /* if this is a new IDR picture following an IDR picture, reset the idr flag.182 /* if this is a new IDR picture following an IDR picture, reset the idr flag.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t