aboutsummaryrefslogtreecommitdiffstats
path: root/avplay.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-04-15 11:10:14 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-04-27 10:51:28 +0200
commit26a44143efb513a602542fb59aee87b1fc62af51 (patch)
treeffd07ba1691e638818cc81edc1712dbc9d32474c /avplay.c
parentcf679b9476727a237c8006c685ace18acba149ab (diff)
downloadffmpeg-26a44143efb513a602542fb59aee87b1fc62af51.tar.gz
avplay: remove a warning
Set the data field in the flush_pkt to the pointer to the actual packet. The field needs to contain a valid unique pointer, no read nor writes are ever made to it.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index 018f63dedb..ba59a8c0fc 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2963,7 +2963,7 @@ int main(int argc, char **argv)
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
av_init_packet(&flush_pkt);
- flush_pkt.data = "FLUSH";
+ flush_pkt.data = (uint8_t *)&flush_pkt;
cur_stream = stream_open(input_filename, file_iformat);