[01/13] rtpdec_h264: Include the right header for AV_RB16

Message ID 1424378051-6607-1-git-send-email-martin@martin.st
State Committed
Commit 8bdbf49c6f4d9473183a3c45ec70d611eb6183cd
Headers show

Commit Message

Martin Storsjö Feb. 19, 2015, 8:33 p.m.
Including libavcodec/get_bits.h is superfluous for AV_RB16 - nothing
in this file uses any actual bitstream reader.
---
 libavformat/rtpdec_h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato Feb. 19, 2015, 9:03 p.m. | #1
On 19/02/15 21:33, Martin Storsjö wrote:
> Including libavcodec/get_bits.h is superfluous for AV_RB16 - nothing
> in this file uses any actual bitstream reader.
> ---
>  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 faf868f..7abfde7 100644
> --- a/libavformat/rtpdec_h264.c
> +++ b/libavformat/rtpdec_h264.c
> @@ -35,8 +35,8 @@
>  
>  #include "libavutil/attributes.h"
>  #include "libavutil/base64.h"
> +#include "libavutil/intreadwrite.h"
>  #include "libavutil/avstring.h"
> -#include "libavcodec/get_bits.h"
>  #include "avformat.h"
>  
>  #include "network.h"
> 

Ok.

Patch

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index faf868f..7abfde7 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -35,8 +35,8 @@ 
 
 #include "libavutil/attributes.h"
 #include "libavutil/base64.h"
+#include "libavutil/intreadwrite.h"
 #include "libavutil/avstring.h"
-#include "libavcodec/get_bits.h"
 #include "avformat.h"
 
 #include "network.h"