am7xxx-play: fix runtime warnings from ffmpeg
authorAntonio Ospite <ao2@ao2.it>
Tue, 17 Nov 2015 09:47:36 +0000 (10:47 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 17 Nov 2015 09:47:36 +0000 (10:47 +0100)
commitc29b6eadb255f5f5f732d0391812d97fe015395f
treee13a73d7c7c3d3c7ad0c3629b98c4e012a59c223
parent81c8bcd5aa0a94b6cc2f429faa61eff6d36049c4
am7xxx-play: fix runtime warnings from ffmpeg

ffmpeg emits warnings at runtime about some AVFrame fields not being
set:

  [mjpeg @ 0x669040] AVFrame.format is not set
  [mjpeg @ 0x669040] AVFrame.width or height is not set

This happens in a loop so the message is repeated over and over and
becomes annoying, fix this by setting the missing values.
examples/am7xxx-play.c