[FFmpeg-cvslog] avplay: remove a warning
Luca Barbato
git at videolan.org
Sun Apr 28 12:16:22 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Apr 15 11:10:14 2013 +0200| [26a44143efb513a602542fb59aee87b1fc62af51] | committer: Luca Barbato
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26a44143efb513a602542fb59aee87b1fc62af51
---
avplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/avplay.c b/avplay.c
index 018f63d..ba59a8c 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);
More information about the ffmpeg-cvslog
mailing list