mirror of https://git.ffmpeg.org/ffmpeg.git
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.
This commit is contained in:
parent
cf679b9476
commit
26a44143ef
2
avplay.c
2
avplay.c
|
@ -2963,7 +2963,7 @@ int main(int argc, char **argv)
|
||||||
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
|
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
|
||||||
|
|
||||||
av_init_packet(&flush_pkt);
|
av_init_packet(&flush_pkt);
|
||||||
flush_pkt.data = "FLUSH";
|
flush_pkt.data = (uint8_t *)&flush_pkt;
|
||||||
|
|
||||||
cur_stream = stream_open(input_filename, file_iformat);
|
cur_stream = stream_open(input_filename, file_iformat);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue