]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp56.c
set the previous tag size correctly in flv files
[ffmpeg] / libavcodec / vp56.c
index a3fec1d2bfcf7a6f9bc03c05edbe8f736aafcc6b..e3634c8261782443ad43a98a58fc3cfb718e6ea8 100644 (file)
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with FFmpeg; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include "avcodec.h"
@@ -496,7 +496,6 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 {
     vp56_context_t *s = avctx->priv_data;
     AVFrame *const p = s->framep[VP56_FRAME_CURRENT];
-    AVFrame *picture = data;
     int mb_row, mb_col, mb_row_flip, mb_offset = 0;
     int block, y, uv, stride_y, stride_uv;
     int golden_frame = 0;
@@ -607,8 +606,8 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     FFSWAP(AVFrame *, s->framep[VP56_FRAME_CURRENT],
                       s->framep[VP56_FRAME_PREVIOUS]);
 
-    *picture = *p;
-    *data_size = sizeof(AVPicture);
+    *(AVFrame*)data = *p;
+    *data_size = sizeof(AVFrame);
 
     return buf_size;
 }