]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
remove unused hack which set AVCodecContext frame_number to pic timestamp
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 30 May 2009 00:24:20 +0000 (00:24 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 30 May 2009 00:24:20 +0000 (00:24 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18988 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h263dec.c
libavcodec/h264.c
libavcodec/svq3.c
libavcodec/vc1.c

index b087933f665a46e042818cb6aaf99e3255c2c52a..a6b0e04fdeb103e4bf1a5dae98830c2103f4d435 100644 (file)
@@ -724,10 +724,6 @@ assert(s->current_picture.pict_type == s->pict_type);
         ff_print_debug_info(s, pict);
     }
 
-    /* Return the Picture timestamp as the frame number */
-    /* we subtract 1 because it is added on utils.c     */
-    avctx->frame_number = s->picture_number - 1;
-
 #ifdef PRINT_FRAME_TIME
 av_log(avctx, AV_LOG_DEBUG, "%"PRId64"\n", rdtsc()-time);
 #endif
index f4c172b6062a91c249bb2d3a0f5a2110df8dd0bb..056e1cce77719da7da01d6711f034627a2396b97 100644 (file)
@@ -7902,12 +7902,7 @@ static int decode_frame(AVCodecContext *avctx,
     assert(pict->data[0] || !*data_size);
     ff_print_debug_info(s, pict);
 //printf("out %d\n", (int)pict->data[0]);
-#if 0 //?
 
-    /* Return the Picture timestamp as the frame number */
-    /* we subtract 1 because it is added on utils.c     */
-    avctx->frame_number = s->picture_number - 1;
-#endif
     return get_consumed_bytes(s, buf_index, buf_size);
 }
 #if 0
index 28dacf79a2e7ec31ad5211a37b1df01ed56f693c..1d488b737b786c63e54614758f5d96fbc96e48fc 100644 (file)
@@ -1031,8 +1031,6 @@ static int svq3_decode_frame(AVCodecContext *avctx,
         *(AVFrame *) data = *(AVFrame *) &s->last_picture;
     }
 
-    avctx->frame_number = s->picture_number - 1;
-
     /* Do not output the last pic after seeking. */
     if (s->last_picture_ptr || s->low_delay) {
         *data_size = sizeof(AVFrame);
index 8d79c18172f2dc235be4f9efdef6755ffdbfda99..acddeb9091340e86402e7fa7ba8551f136e67b61 100644 (file)
@@ -4237,10 +4237,6 @@ assert(s->current_picture.pict_type == s->pict_type);
         ff_print_debug_info(s, pict);
     }
 
-    /* Return the Picture timestamp as the frame number */
-    /* we subtract 1 because it is added on utils.c     */
-    avctx->frame_number = s->picture_number - 1;
-
     av_free(buf2);
     return buf_size;
 }