rtpdec: Remove unnecessary _if_needed suffixes on functions

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2015-02-23 22:25:55 +02:00
parent 353b492d0f
commit db158f0dd2
2 changed files with 8 additions and 8 deletions

View File

@@ -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);
}
@@ -321,7 +321,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;
@@ -347,7 +347,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;
}