rtpdec_vp8: Set the timestamp when returning a deferred packet
authorMartin Storsjö <martin@martin.st>
Mon, 7 Jan 2013 19:42:40 +0000 (21:42 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 8 Jan 2013 15:42:20 +0000 (17:42 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_vp8.c

index 18275a5..6dbf402 100644 (file)
@@ -79,6 +79,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
             int ret = ff_rtp_finalize_packet(pkt, &vp8->data, st->index);
             if (ret < 0)
                 return ret;
+            *timestamp = vp8->timestamp;
             return 0;
         }
         return AVERROR(EAGAIN);