History

Cleanup 'Fix spurious warning when stream has SPS and PPS units.' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer committed 15 years ago

Commit 9d4cb451 parent d0df2931 file · +2 −6Browse files

Unified · Split

libavcodec/h264_mp4toannexb_bsf.c+2−6
@@ -87,11 +87,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc, · 86 unmodified lines
8787 /* retrieve sps and pps unit(s) */
8888 unit_nb = *extradata++ & 0x1f; /* number of sps unit(s) */
8989 if (!unit_nb) {
90− unit_nb = *extradata++; /* number of pps unit(s) */
91− sps_done++;
92−
93− if (unit_nb)
94− pps_seen = 1;
90+ goto pps;
9591 } else {
9692 sps_seen = 1;
9793 }
@@ -115,7 +111,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc, · 17 unmodified lines
115111 memcpy(out+total_size-unit_size-4, nalu_header, 4);
116112 memcpy(out+total_size-unit_size, extradata+2, unit_size);
117113 extradata += 2+unit_size;
118−
114+pps:
119115 if (!unit_nb && !sps_done++) {
120116 unit_nb = *extradata++; /* number of pps unit(s) */
121117 if (unit_nb)

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