[04/12] rtpdec: Remove unnecessary inline attributes

Message ID 1424795718-79013-4-git-send-email-martin@martin.st
State Committed
Commit 88434f9725e7c9484dcbcf323566ae88a2904f32
Headers show

Commit Message

Martin Storsjö Feb. 24, 2015, 4:35 p.m.
These functions are far from performance critical, so there's no
point in marking them as inline.
---
 libavformat/rtpdec_jpeg.c       | 2 +-
 libavformat/rtpdec_mpa_robust.c | 2 +-
 libavformat/rtpdec_xiph.c       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Diego Biurrun Feb. 24, 2015, 6:06 p.m. | #1
On Tue, Feb 24, 2015 at 06:35:10PM +0200, Martin Storsjö wrote:
> These functions are far from performance critical, so there's no
> point in marking them as inline.
> ---
>  libavformat/rtpdec_jpeg.c       | 2 +-
>  libavformat/rtpdec_mpa_robust.c | 2 +-
>  libavformat/rtpdec_xiph.c       | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

probably OK

Diego
Luca Barbato Feb. 24, 2015, 6:49 p.m. | #2
On 24/02/15 17:35, Martin Storsjö wrote:
> These functions are far from performance critical, so there's no
> point in marking them as inline.
> ---
>  libavformat/rtpdec_jpeg.c       | 2 +-
>  libavformat/rtpdec_mpa_robust.c | 2 +-
>  libavformat/rtpdec_xiph.c       | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 

Ok.

Patch

diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index 68ce6d8..b49185a 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -59,7 +59,7 @@  static const uint8_t default_quantizers[128] = {
     99,  99,  99,  99,  99,  99,  99,  99
 };
 
-static inline void free_frame(PayloadContext *jpeg)
+static void free_frame(PayloadContext *jpeg)
 {
     if (jpeg->frame) {
         uint8_t *p;
diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c
index 0bc9ede..d7a0104 100644
--- a/libavformat/rtpdec_mpa_robust.c
+++ b/libavformat/rtpdec_mpa_robust.c
@@ -33,7 +33,7 @@  struct PayloadContext {
     AVIOContext *fragment;
 };
 
-static inline void free_fragment(PayloadContext *data)
+static void free_fragment(PayloadContext *data)
 {
     if (data->fragment) {
         uint8_t *p;
diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index d52de82..a9d3fbb 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -49,7 +49,7 @@  struct PayloadContext {
     int split_pkts;
 };
 
-static inline void free_fragment(PayloadContext * data)
+static void free_fragment(PayloadContext * data)
 {
     if (data->fragment) {
         uint8_t* p;