mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
h264_mp4toannexb_bsf: Fix spurious warning when stream has SPS and PPS units.
Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
9f8f62d4a3
commit
025225d7ee
@ -116,8 +116,11 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
|
||||
memcpy(out+total_size-unit_size, extradata+2, unit_size);
|
||||
extradata += 2+unit_size;
|
||||
|
||||
if (!unit_nb && !sps_done++)
|
||||
if (!unit_nb && !sps_done++) {
|
||||
unit_nb = *extradata++; /* number of pps unit(s) */
|
||||
if (unit_nb)
|
||||
pps_seen = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if(out)
|
||||
|
Loading…
Reference in New Issue
Block a user