diff options
author | Martin Storsjö <martin@martin.st> | 2013-01-09 16:25:22 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-01-10 11:41:44 +0400 |
commit | 3b366c3aa0800d2df9f0678f6f4d7791b8adf2a9 (patch) | |
tree | dd0e4cc493559ee8601a8b21a46f042ddd974870 /libavformat/rtpdec_vp8.c | |
parent | ed79093222ceb42f0c3a39095a69af0b32be5450 (diff) |
rtpdec_vp8: Simplify code by using an existing helper function
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_vp8.c')
-rw-r--r-- | libavformat/rtpdec_vp8.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c index c1bffaac0d..b7d5345ab7 100644 --- a/libavformat/rtpdec_vp8.c +++ b/libavformat/rtpdec_vp8.c @@ -225,11 +225,8 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8, if (vp8->timestamp != *timestamp) { // Missed the start of the new frame, sequence broken - vp8->sequence_ok = 0; - av_log(ctx, AV_LOG_WARNING, - "Received no start marker; dropping frame\n"); - vp8_free_buffer(vp8); - return AVERROR(EAGAIN); + return vp8_broken_sequence(ctx, vp8, + "Received no start marker; dropping frame\n"); } if (seq != expected_seq) { |