changed write_packet API - should work as before
authorFabrice Bellard <fabrice@bellard.org>
Mon, 21 Oct 2002 17:44:43 +0000 (17:44 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 21 Oct 2002 17:44:43 +0000 (17:44 +0000)
Originally committed as revision 1060 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 789f5082e0f0bce58b6b2cd6a6e1e0c5815a8251..2f3eae7ea28744191593607c66d8e0cf29178535 100644 (file)
@@ -2119,7 +2119,7 @@ static int http_prepare_data(HTTPContext *c)
                             /* XXX: potential leak */
                             return -1;
                         }
-                        if (av_write_packet(ctx, &pkt, pkt.pts)) {
+                        if (av_write_frame(ctx, pkt.stream_index, pkt.data, pkt.size)) {
                             c->state = HTTPSTATE_SEND_DATA_TRAILER;
                         }