[08/16] rtpdec_mpa_robust: Move .enc_name to the start of the struct

Message ID 1424727122-2827-8-git-send-email-martin@martin.st
State Committed
Commit b651c9139e1ab222d5aab9151dcd7d6e40e49885
Headers show

Commit Message

Martin Storsjö Feb. 23, 2015, 9:31 p.m.
This makes it match the other depacketizers.
---
 libavformat/rtpdec_mpa_robust.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato Feb. 23, 2015, 9:36 p.m. | #1
On 23/02/15 22:31, Martin Storsjö wrote:
> This makes it match the other depacketizers.
> ---
>   libavformat/rtpdec_mpa_robust.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c
> index b3eda38..ebf1b72 100644
> --- a/libavformat/rtpdec_mpa_robust.c
> +++ b/libavformat/rtpdec_mpa_robust.c
> @@ -214,11 +214,11 @@ static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data,
>   }
>
>   RTPDynamicProtocolHandler ff_mpeg_audio_robust_dynamic_handler = {
> +    .enc_name          = "mpa-robust",
>       .codec_type        = AVMEDIA_TYPE_AUDIO,
>       .codec_id          = AV_CODEC_ID_MP3ADU,
>       .init              = mpa_robust_init,
>       .alloc             = mpa_robust_new_context,
>       .free              = mpa_robust_free_context,
>       .parse_packet      = mpa_robust_parse_packet,
> -    .enc_name          = "mpa-robust",
>   };
>

Ok.

Patch

diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c
index b3eda38..ebf1b72 100644
--- a/libavformat/rtpdec_mpa_robust.c
+++ b/libavformat/rtpdec_mpa_robust.c
@@ -214,11 +214,11 @@  static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data,
 }
 
 RTPDynamicProtocolHandler ff_mpeg_audio_robust_dynamic_handler = {
+    .enc_name          = "mpa-robust",
     .codec_type        = AVMEDIA_TYPE_AUDIO,
     .codec_id          = AV_CODEC_ID_MP3ADU,
     .init              = mpa_robust_init,
     .alloc             = mpa_robust_new_context,
     .free              = mpa_robust_free_context,
     .parse_packet      = mpa_robust_parse_packet,
-    .enc_name          = "mpa-robust",
 };