]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/framecrcenc.c
Move the functions in h264pred.c into a new file h264pred_internal.h.
[ffmpeg] / libavformat / framecrcenc.c
index f456ec6816cc803c62e48ded5e66021dbf914ac3..dcdfac882a134ed67d85dfc6dc48913b7a257a36 100644 (file)
@@ -28,8 +28,8 @@ static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
     char buf[256];
 
     snprintf(buf, sizeof(buf), "%d, %"PRId64", %d, 0x%08x\n", pkt->stream_index, pkt->dts, pkt->size, crc);
-    put_buffer(s->pb, buf, strlen(buf));
-    put_flush_packet(s->pb);
+    avio_write(s->pb, buf, strlen(buf));
+    avio_flush(s->pb);
     return 0;
 }