summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/rtpdec_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index c8a65320f4..d3439b9fc0 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -182,6 +182,7 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, PayloadContext *data,
uint8_t *dst = NULL;
int ret;
+ // first we are going to figure out the total size
for (pass = 0; pass < 2; pass++) {
const uint8_t *src = buf;
int src_len = len;
@@ -301,7 +302,6 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
// consume the STAP-A NAL
buf++;
len--;
- // first we are going to figure out the total size
result = h264_handle_packet_stap_a(ctx, data, pkt, buf, len);
break;