]> git.sesse.net Git - ffmpeg/blobdiff - ffserver.c
fix for width or height not multiple of 4
[ffmpeg] / ffserver.c
index b81b5c8865ace4ee3ab4714b640d6bd6a6d680a9..7423abc07b40f85c33f2aea064eb92ffde714929 100644 (file)
@@ -2163,7 +2163,7 @@ static int http_prepare_data(HTTPContext *c)
                             /* XXX: potential leak */
                             return -1;
                         }
-                        if (av_write_frame(ctx, pkt.stream_index, pkt.data, pkt.size)) {
+                        if (av_write_frame(ctx, &pkt)) {
                             c->state = HTTPSTATE_SEND_DATA_TRAILER;
                         }