summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_jpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-24 22:26:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-24 22:26:15 +0100
commita51b192f3b8f89a1bafba629655df55348b14195 (patch)
tree51a19ca6a9121e3bb96ce2d8deb6340e34d1bafa /libavformat/rtpdec_jpeg.c
parent8c6651a14db2f8d8ff53b6fb17f55a4d8ae8c379 (diff)
parentdb158f0dd217cf839be8af195d66cf49a76537a8 (diff)
downloadffmpeg-a51b192f3b8f89a1bafba629655df55348b14195.tar.gz
Merge commit 'db158f0dd217cf839be8af195d66cf49a76537a8'
* commit 'db158f0dd217cf839be8af195d66cf49a76537a8': rtpdec: Remove unnecessary _if_needed suffixes on functions Conflicts: libavformat/rtpdec_xiph.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_jpeg.c')
-rw-r--r--libavformat/rtpdec_jpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c
index ccd80ad7e8..0f7cec82dd 100644
--- a/libavformat/rtpdec_jpeg.c
+++ b/libavformat/rtpdec_jpeg.c
@@ -64,7 +64,7 @@ static PayloadContext *jpeg_new_context(void)
return av_mallocz(sizeof(PayloadContext));
}
-static inline void free_frame_if_needed(PayloadContext *jpeg)
+static inline void free_frame(PayloadContext *jpeg)
{
if (jpeg->frame) {
uint8_t *p;
@@ -76,7 +76,7 @@ static inline void free_frame_if_needed(PayloadContext *jpeg)
static void jpeg_free_context(PayloadContext *jpeg)
{
- free_frame_if_needed(jpeg);
+ free_frame(jpeg);
av_free(jpeg);
}
@@ -338,7 +338,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
/* Skip the current frame in case of the end packet
* has been lost somewhere. */
- free_frame_if_needed(jpeg);
+ free_frame(jpeg);
if ((ret = avio_open_dyn_buf(&jpeg->frame)) < 0)
return ret;
@@ -364,7 +364,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
if (jpeg->timestamp != *timestamp) {
/* Skip the current frame if timestamp is incorrect.
* A start packet has been lost somewhere. */
- free_frame_if_needed(jpeg);
+ free_frame(jpeg);
av_log(ctx, AV_LOG_ERROR, "RTP timestamps don't match.\n");
return AVERROR_INVALIDDATA;
}