]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_xiph.c
Partial rewrite stream probe code.
[ffmpeg] / libavformat / rtpdec_xiph.c
index 17d81e7222d7e518b85dcfccee97d688502c5b90..37e57f504f6a100de369667154bcfdf08101e343 100644 (file)
@@ -179,7 +179,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
         if((res = url_open_dyn_buf(&data->fragment)) < 0)
             return res;
 
-        put_buffer(data->fragment, buf, pkt_len);
+        avio_write(data->fragment, buf, pkt_len);
         data->timestamp = *timestamp;
 
     } else {
@@ -198,7 +198,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
         }
 
         // copy data to fragment buffer
-        put_buffer(data->fragment, buf, pkt_len);
+        avio_write(data->fragment, buf, pkt_len);
 
         if (fragmented == 3) {
             // end of xiph data packet