rtpdec_vp8: Set the timestamp when returning a deferred packet
[ffmpeg.git] / libavformat / rtpdec_vp8.c
index 18275a507a8108c4eef69a36f96af44ccbc3097f..6dbf402df6d8c6a4ff837ee0e14a56c0425bfea2 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);