[06/13] rtpdec_h264: Move a leftover comment into h264_handle_packet_stap_a

Message ID 1424378051-6607-6-git-send-email-martin@martin.st
State Committed
Commit 46ad9ac9641d1fe8292ec1f46bbd2e4456621ca7
Headers show

Commit Message

Martin Storsjö Feb. 19, 2015, 8:34 p.m.
---
 libavformat/rtpdec_h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato Feb. 19, 2015, 9:04 p.m. | #1
On 19/02/15 21:34, Martin Storsjö wrote:
> ---
>  libavformat/rtpdec_h264.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
> index 5ffb4c4..277b3cd 100644
> --- a/libavformat/rtpdec_h264.c
> +++ b/libavformat/rtpdec_h264.c
> @@ -182,6 +182,7 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
>      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, pkt, buf, len);
>          break;
>  
> 

Ok.

Patch

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index 5ffb4c4..277b3cd 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -182,6 +182,7 @@  static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
     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, pkt, buf, len);
         break;