]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rdt.c
Use the correct ByteIOContext in extradata parsing.Fixes half of issue
[ffmpeg] / libavformat / rdt.c
index b1dd93918ef7b50d1c0c216964d37684fb56aebb..fa909e6023e1e5b3e8e449364470b6a1f08af47a 100644 (file)
@@ -67,7 +67,7 @@ ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx,
     s->prev_set_id    = -1;
     s->prev_stream_id = -1;
     s->prev_timestamp = -1;
-    s->parse_packet = handler->parse_packet;
+    s->parse_packet = handler ? handler->parse_packet : NULL;
     s->dynamic_protocol_context = priv_data;
 
     return s;
@@ -308,7 +308,7 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
         init_put_byte(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
         flags = (flags & RTP_FLAG_KEY) ? 2 : 0;
         res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
-                                  &seq, &flags, timestamp);
+                                  &seq, flags, *timestamp);
         pos = url_ftell(&pb);
         if (res < 0)
             return res;